package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Inventory;
import com.ruoyi.system.domain.MaterialSix;
import com.ruoyi.system.domain.MaterialTwo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface WarehouseDetailMapper {
    /**
     * 查询仓库材料明细记录
     *
     * @param  map
     * @return 材料集合
     */
    public List<MaterialSix> selectMaterialList(HashMap<String,Object> map);/**
     * 查询仓库材料明细记录
     *
     * @param  map
     * @return 材料集合
     */
    public List<MaterialTwo> selectMaterialRecordList(HashMap<String,Object> map);

    //清空当前月盘前
    int deleteInventory(HashMap<String,Object> map);
    //添加当前月新的盘点值
    int insertInventory(Inventory inventory);
    //删除明细
    int deleteMaterialdetails(@Param("mdId") Long mdId);
    //删除记录
    int deletewarehouserecord(@Param("mdId") Long mdId);

    int updateWarehouseMateriaDetail(MaterialSix materialSix);
    List<Map> queryMaterial(Map map);
}
